package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.TravelContent;
import cn.wolfcode.luowowo.article.mapper.TravelContentMapper;
import cn.wolfcode.luowowo.article.service.ITravelContentService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TravelContenServiceImpl implements ITravelContentService{

    @Autowired
    private TravelContentMapper TravelContentMapper;


    @Override
    public void insert(TravelContent record) {
        TravelContentMapper.insert(record);
    }

    @Override
    public TravelContent selectByPrimaryKey(Long id) {
        return TravelContentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TravelContent> selectAll() {
        return TravelContentMapper.selectAll();
    }

    @Override
    public void updateByPrimaryKey(TravelContent record) {
        TravelContentMapper.updateByPrimaryKey(record);
    }
}
